import { ILoginState } from "./login/types";
import { ISystemState } from "./main/system/types";

export interface IRootState {
  name: string;
  age: number;
  entireDepartments: any[];
  entireRole: any[];
  entireMenu: any[];
}

export interface IRootWithModule {
  loginModule: ILoginState; //引入login里面的类型限制
  systemModule: ISystemState;
}

// 导出类型 用作自己编写的useStore函数的类型限制
export type IStoreType = IRootState & IRootWithModule; //交叉类型 将两个接口并和在一起
